package tfmcbs.diagram.part;

import java.util.Collection;
import java.util.Collections;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;

import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EStructuralFeature;
import org.eclipse.emf.ecore.util.EcoreUtil;
import org.eclipse.gmf.runtime.notation.View;

import tfmcbs.Artifact;
import tfmcbs.Component;
import tfmcbs.CompositeComponent;
import tfmcbs.Connection;
import tfmcbs.Dependency;
import tfmcbs.Element;
import tfmcbs.Entity;
import tfmcbs.IElementsContainer;
import tfmcbs.Interface;
import tfmcbs.Manifestation;
import tfmcbs.Model;
import tfmcbs.Port;
import tfmcbs.PortRealization;
import tfmcbs.PortUsage;
import tfmcbs.PrimitiveComponent;
import tfmcbs.PrimitiveRealization;
import tfmcbs.PrimitiveUsage;
import tfmcbs.ProvidingPort;
import tfmcbs.RequiringPort;
import tfmcbs.TfmcbsPackage;
import tfmcbs.diagram.edit.parts.Artifact2EditPart;
import tfmcbs.diagram.edit.parts.ArtifactEditPart;
import tfmcbs.diagram.edit.parts.CompositeComponent2EditPart;
import tfmcbs.diagram.edit.parts.CompositeComponent3EditPart;
import tfmcbs.diagram.edit.parts.CompositeComponentCompositeComponentCompartment2EditPart;
import tfmcbs.diagram.edit.parts.CompositeComponentCompositeComponentCompartmentEditPart;
import tfmcbs.diagram.edit.parts.CompositeComponentEditPart;
import tfmcbs.diagram.edit.parts.ConnectionEditPart;
import tfmcbs.diagram.edit.parts.DependencyEditPart;
import tfmcbs.diagram.edit.parts.EntityExtendsEditPart;
import tfmcbs.diagram.edit.parts.Interface2EditPart;
import tfmcbs.diagram.edit.parts.InterfaceEditPart;
import tfmcbs.diagram.edit.parts.ManifestationEditPart;
import tfmcbs.diagram.edit.parts.ModelEditPart;
import tfmcbs.diagram.edit.parts.PortRealizationEditPart;
import tfmcbs.diagram.edit.parts.PortUsageEditPart;
import tfmcbs.diagram.edit.parts.PrimitiveComponent2EditPart;
import tfmcbs.diagram.edit.parts.PrimitiveComponentEditPart;
import tfmcbs.diagram.edit.parts.PrimitiveRealizationEditPart;
import tfmcbs.diagram.edit.parts.PrimitiveUsageEditPart;
import tfmcbs.diagram.edit.parts.ProvidingPortDelegateEditPart;
import tfmcbs.diagram.edit.parts.ProvidingPortEditPart;
import tfmcbs.diagram.edit.parts.RequiringPortDelegateEditPart;
import tfmcbs.diagram.edit.parts.RequiringPortEditPart;
import tfmcbs.diagram.providers.ComponentBasedSystemElementTypes;

/**
 * @generated
 */
public class ComponentBasedSystemDiagramUpdater {

	/**
	 * @generated
	 */
	public static List<ComponentBasedSystemNodeDescriptor> getSemanticChildren(
			View view) {
		switch (ComponentBasedSystemVisualIDRegistry.getVisualID(view)) {
		case ModelEditPart.VISUAL_ID:
			return getModel_1000SemanticChildren(view);
		case CompositeComponentEditPart.VISUAL_ID:
			return getCompositeComponent_2023SemanticChildren(view);
		case CompositeComponent2EditPart.VISUAL_ID:
			return getCompositeComponent_3020SemanticChildren(view);
		case CompositeComponentCompositeComponentCompartmentEditPart.VISUAL_ID:
			return getCompositeComponentCompositeComponentCompartment_7006SemanticChildren(view);
		case CompositeComponentCompositeComponentCompartment2EditPart.VISUAL_ID:
			return getCompositeComponentCompositeComponentCompartment_7007SemanticChildren(view);
		}
		return Collections.emptyList();
	}

	/**
	 * @generated
	 */
	public static List<ComponentBasedSystemNodeDescriptor> getModel_1000SemanticChildren(
			View view) {
		if (!view.isSetElement()) {
			return Collections.emptyList();
		}
		Model modelElement = (Model) view.getElement();
		LinkedList<ComponentBasedSystemNodeDescriptor> result = new LinkedList<ComponentBasedSystemNodeDescriptor>();
		for (Iterator<?> it = modelElement.getElements().iterator(); it
				.hasNext();) {
			Element childElement = (Element) it.next();
			int visualID = ComponentBasedSystemVisualIDRegistry
					.getNodeVisualID(view, childElement);
			if (visualID == PrimitiveComponentEditPart.VISUAL_ID) {
				result.add(new ComponentBasedSystemNodeDescriptor(childElement,
						visualID));
				continue;
			}
			if (visualID == CompositeComponentEditPart.VISUAL_ID) {
				result.add(new ComponentBasedSystemNodeDescriptor(childElement,
						visualID));
				continue;
			}
			if (visualID == InterfaceEditPart.VISUAL_ID) {
				result.add(new ComponentBasedSystemNodeDescriptor(childElement,
						visualID));
				continue;
			}
			if (visualID == ArtifactEditPart.VISUAL_ID) {
				result.add(new ComponentBasedSystemNodeDescriptor(childElement,
						visualID));
				continue;
			}
		}
		return result;
	}

	/**
	 * @generated
	 */
	public static List<ComponentBasedSystemNodeDescriptor> getCompositeComponent_2023SemanticChildren(
			View view) {
		if (!view.isSetElement()) {
			return Collections.emptyList();
		}
		CompositeComponent modelElement = (CompositeComponent) view
				.getElement();
		LinkedList<ComponentBasedSystemNodeDescriptor> result = new LinkedList<ComponentBasedSystemNodeDescriptor>();
		for (Iterator<?> it = modelElement.getPorts().iterator(); it.hasNext();) {
			Port childElement = (Port) it.next();
			int visualID = ComponentBasedSystemVisualIDRegistry
					.getNodeVisualID(view, childElement);
			if (visualID == ProvidingPortEditPart.VISUAL_ID) {
				result.add(new ComponentBasedSystemNodeDescriptor(childElement,
						visualID));
				continue;
			}
			if (visualID == RequiringPortEditPart.VISUAL_ID) {
				result.add(new ComponentBasedSystemNodeDescriptor(childElement,
						visualID));
				continue;
			}
		}
		return result;
	}

	/**
	 * @generated
	 */
	public static List<ComponentBasedSystemNodeDescriptor> getCompositeComponent_3020SemanticChildren(
			View view) {
		if (!view.isSetElement()) {
			return Collections.emptyList();
		}
		CompositeComponent modelElement = (CompositeComponent) view
				.getElement();
		LinkedList<ComponentBasedSystemNodeDescriptor> result = new LinkedList<ComponentBasedSystemNodeDescriptor>();
		for (Iterator<?> it = modelElement.getPorts().iterator(); it.hasNext();) {
			Port childElement = (Port) it.next();
			int visualID = ComponentBasedSystemVisualIDRegistry
					.getNodeVisualID(view, childElement);
			if (visualID == ProvidingPortEditPart.VISUAL_ID) {
				result.add(new ComponentBasedSystemNodeDescriptor(childElement,
						visualID));
				continue;
			}
			if (visualID == RequiringPortEditPart.VISUAL_ID) {
				result.add(new ComponentBasedSystemNodeDescriptor(childElement,
						visualID));
				continue;
			}
		}
		return result;
	}

	/**
	 * @generated
	 */
	public static List<ComponentBasedSystemNodeDescriptor> getCompositeComponentCompositeComponentCompartment_7006SemanticChildren(
			View view) {
		if (false == view.eContainer() instanceof View) {
			return Collections.emptyList();
		}
		View containerView = (View) view.eContainer();
		if (!containerView.isSetElement()) {
			return Collections.emptyList();
		}
		CompositeComponent modelElement = (CompositeComponent) containerView
				.getElement();
		LinkedList<ComponentBasedSystemNodeDescriptor> result = new LinkedList<ComponentBasedSystemNodeDescriptor>();
		for (Iterator<?> it = modelElement.getElements().iterator(); it
				.hasNext();) {
			Element childElement = (Element) it.next();
			int visualID = ComponentBasedSystemVisualIDRegistry
					.getNodeVisualID(view, childElement);
			if (visualID == PrimitiveComponent2EditPart.VISUAL_ID) {
				result.add(new ComponentBasedSystemNodeDescriptor(childElement,
						visualID));
				continue;
			}
			if (visualID == CompositeComponent2EditPart.VISUAL_ID) {
				result.add(new ComponentBasedSystemNodeDescriptor(childElement,
						visualID));
				continue;
			}
			if (visualID == Interface2EditPart.VISUAL_ID) {
				result.add(new ComponentBasedSystemNodeDescriptor(childElement,
						visualID));
				continue;
			}
			if (visualID == Artifact2EditPart.VISUAL_ID) {
				result.add(new ComponentBasedSystemNodeDescriptor(childElement,
						visualID));
				continue;
			}
		}
		return result;
	}

	/**
	 * @generated
	 */
	public static List<ComponentBasedSystemNodeDescriptor> getCompositeComponentCompositeComponentCompartment_7007SemanticChildren(
			View view) {
		if (false == view.eContainer() instanceof View) {
			return Collections.emptyList();
		}
		View containerView = (View) view.eContainer();
		if (!containerView.isSetElement()) {
			return Collections.emptyList();
		}
		CompositeComponent modelElement = (CompositeComponent) containerView
				.getElement();
		LinkedList<ComponentBasedSystemNodeDescriptor> result = new LinkedList<ComponentBasedSystemNodeDescriptor>();
		for (Iterator<?> it = modelElement.getElements().iterator(); it
				.hasNext();) {
			Element childElement = (Element) it.next();
			int visualID = ComponentBasedSystemVisualIDRegistry
					.getNodeVisualID(view, childElement);
			if (visualID == PrimitiveComponent2EditPart.VISUAL_ID) {
				result.add(new ComponentBasedSystemNodeDescriptor(childElement,
						visualID));
				continue;
			}
			if (visualID == CompositeComponent2EditPart.VISUAL_ID) {
				result.add(new ComponentBasedSystemNodeDescriptor(childElement,
						visualID));
				continue;
			}
			if (visualID == Interface2EditPart.VISUAL_ID) {
				result.add(new ComponentBasedSystemNodeDescriptor(childElement,
						visualID));
				continue;
			}
			if (visualID == Artifact2EditPart.VISUAL_ID) {
				result.add(new ComponentBasedSystemNodeDescriptor(childElement,
						visualID));
				continue;
			}
		}
		return result;
	}

	/**
	 * @generated
	 */
	public static List<ComponentBasedSystemLinkDescriptor> getContainedLinks(
			View view) {
		switch (ComponentBasedSystemVisualIDRegistry.getVisualID(view)) {
		case ModelEditPart.VISUAL_ID:
			return getModel_1000ContainedLinks(view);
		case PrimitiveComponentEditPart.VISUAL_ID:
			return getPrimitiveComponent_2022ContainedLinks(view);
		case CompositeComponentEditPart.VISUAL_ID:
			return getCompositeComponent_2023ContainedLinks(view);
		case InterfaceEditPart.VISUAL_ID:
			return getInterface_2024ContainedLinks(view);
		case ArtifactEditPart.VISUAL_ID:
			return getArtifact_2025ContainedLinks(view);
		case PrimitiveComponent2EditPart.VISUAL_ID:
			return getPrimitiveComponent_3019ContainedLinks(view);
		case CompositeComponent2EditPart.VISUAL_ID:
			return getCompositeComponent_3020ContainedLinks(view);
		case Interface2EditPart.VISUAL_ID:
			return getInterface_3021ContainedLinks(view);
		case Artifact2EditPart.VISUAL_ID:
			return getArtifact_3022ContainedLinks(view);
		case ProvidingPortEditPart.VISUAL_ID:
			return getProvidingPort_3014ContainedLinks(view);
		case RequiringPortEditPart.VISUAL_ID:
			return getRequiringPort_3015ContainedLinks(view);
		case ConnectionEditPart.VISUAL_ID:
			return getConnection_4037ContainedLinks(view);
		case DependencyEditPart.VISUAL_ID:
			return getDependency_4038ContainedLinks(view);
		case ManifestationEditPart.VISUAL_ID:
			return getManifestation_4039ContainedLinks(view);
		case PrimitiveUsageEditPart.VISUAL_ID:
			return getPrimitiveUsage_4050ContainedLinks(view);
		case PortUsageEditPart.VISUAL_ID:
			return getPortUsage_4041ContainedLinks(view);
		case PrimitiveRealizationEditPart.VISUAL_ID:
			return getPrimitiveRealization_4042ContainedLinks(view);
		case PortRealizationEditPart.VISUAL_ID:
			return getPortRealization_4043ContainedLinks(view);
		}
		return Collections.emptyList();
	}

	/**
	 * @generated
	 */
	public static List<ComponentBasedSystemLinkDescriptor> getIncomingLinks(
			View view) {
		switch (ComponentBasedSystemVisualIDRegistry.getVisualID(view)) {
		case PrimitiveComponentEditPart.VISUAL_ID:
			return getPrimitiveComponent_2022IncomingLinks(view);
		case CompositeComponentEditPart.VISUAL_ID:
			return getCompositeComponent_2023IncomingLinks(view);
		case InterfaceEditPart.VISUAL_ID:
			return getInterface_2024IncomingLinks(view);
		case ArtifactEditPart.VISUAL_ID:
			return getArtifact_2025IncomingLinks(view);
		case PrimitiveComponent2EditPart.VISUAL_ID:
			return getPrimitiveComponent_3019IncomingLinks(view);
		case CompositeComponent2EditPart.VISUAL_ID:
			return getCompositeComponent_3020IncomingLinks(view);
		case Interface2EditPart.VISUAL_ID:
			return getInterface_3021IncomingLinks(view);
		case Artifact2EditPart.VISUAL_ID:
			return getArtifact_3022IncomingLinks(view);
		case ProvidingPortEditPart.VISUAL_ID:
			return getProvidingPort_3014IncomingLinks(view);
		case RequiringPortEditPart.VISUAL_ID:
			return getRequiringPort_3015IncomingLinks(view);
		case ConnectionEditPart.VISUAL_ID:
			return getConnection_4037IncomingLinks(view);
		case DependencyEditPart.VISUAL_ID:
			return getDependency_4038IncomingLinks(view);
		case ManifestationEditPart.VISUAL_ID:
			return getManifestation_4039IncomingLinks(view);
		case PrimitiveUsageEditPart.VISUAL_ID:
			return getPrimitiveUsage_4050IncomingLinks(view);
		case PortUsageEditPart.VISUAL_ID:
			return getPortUsage_4041IncomingLinks(view);
		case PrimitiveRealizationEditPart.VISUAL_ID:
			return getPrimitiveRealization_4042IncomingLinks(view);
		case PortRealizationEditPart.VISUAL_ID:
			return getPortRealization_4043IncomingLinks(view);
		}
		return Collections.emptyList();
	}

	/**
	 * @generated
	 */
	public static List<ComponentBasedSystemLinkDescriptor> getOutgoingLinks(
			View view) {
		switch (ComponentBasedSystemVisualIDRegistry.getVisualID(view)) {
		case PrimitiveComponentEditPart.VISUAL_ID:
			return getPrimitiveComponent_2022OutgoingLinks(view);
		case CompositeComponentEditPart.VISUAL_ID:
			return getCompositeComponent_2023OutgoingLinks(view);
		case InterfaceEditPart.VISUAL_ID:
			return getInterface_2024OutgoingLinks(view);
		case ArtifactEditPart.VISUAL_ID:
			return getArtifact_2025OutgoingLinks(view);
		case PrimitiveComponent2EditPart.VISUAL_ID:
			return getPrimitiveComponent_3019OutgoingLinks(view);
		case CompositeComponent2EditPart.VISUAL_ID:
			return getCompositeComponent_3020OutgoingLinks(view);
		case Interface2EditPart.VISUAL_ID:
			return getInterface_3021OutgoingLinks(view);
		case Artifact2EditPart.VISUAL_ID:
			return getArtifact_3022OutgoingLinks(view);
		case ProvidingPortEditPart.VISUAL_ID:
			return getProvidingPort_3014OutgoingLinks(view);
		case RequiringPortEditPart.VISUAL_ID:
			return getRequiringPort_3015OutgoingLinks(view);
		case ConnectionEditPart.VISUAL_ID:
			return getConnection_4037OutgoingLinks(view);
		case DependencyEditPart.VISUAL_ID:
			return getDependency_4038OutgoingLinks(view);
		case ManifestationEditPart.VISUAL_ID:
			return getManifestation_4039OutgoingLinks(view);
		case PrimitiveUsageEditPart.VISUAL_ID:
			return getPrimitiveUsage_4050OutgoingLinks(view);
		case PortUsageEditPart.VISUAL_ID:
			return getPortUsage_4041OutgoingLinks(view);
		case PrimitiveRealizationEditPart.VISUAL_ID:
			return getPrimitiveRealization_4042OutgoingLinks(view);
		case PortRealizationEditPart.VISUAL_ID:
			return getPortRealization_4043OutgoingLinks(view);
		}
		return Collections.emptyList();
	}

	/**
	 * @generated
	 */
	public static List<ComponentBasedSystemLinkDescriptor> getModel_1000ContainedLinks(
			View view) {
		Model modelElement = (Model) view.getElement();
		LinkedList<ComponentBasedSystemLinkDescriptor> result = new LinkedList<ComponentBasedSystemLinkDescriptor>();
		result.addAll(getContainedTypeModelFacetLinks_Connection_4037(modelElement));
		result.addAll(getContainedTypeModelFacetLinks_Dependency_4038(modelElement));
		result.addAll(getContainedTypeModelFacetLinks_Manifestation_4039(modelElement));
		result.addAll(getContainedTypeModelFacetLinks_PrimitiveUsage_4050(modelElement));
		result.addAll(getContainedTypeModelFacetLinks_PortUsage_4041(modelElement));
		result.addAll(getContainedTypeModelFacetLinks_PrimitiveRealization_4042(modelElement));
		result.addAll(getContainedTypeModelFacetLinks_PortRealization_4043(modelElement));
		return result;
	}

	/**
	 * @generated
	 */
	public static List<ComponentBasedSystemLinkDescriptor> getPrimitiveComponent_2022ContainedLinks(
			View view) {
		PrimitiveComponent modelElement = (PrimitiveComponent) view
				.getElement();
		LinkedList<ComponentBasedSystemLinkDescriptor> result = new LinkedList<ComponentBasedSystemLinkDescriptor>();
		result.addAll(getOutgoingFeatureModelFacetLinks_Entity_Extends_4046(modelElement));
		return result;
	}

	/**
	 * @generated
	 */
	public static List<ComponentBasedSystemLinkDescriptor> getCompositeComponent_2023ContainedLinks(
			View view) {
		CompositeComponent modelElement = (CompositeComponent) view
				.getElement();
		LinkedList<ComponentBasedSystemLinkDescriptor> result = new LinkedList<ComponentBasedSystemLinkDescriptor>();
		result.addAll(getContainedTypeModelFacetLinks_Connection_4037(modelElement));
		result.addAll(getContainedTypeModelFacetLinks_Dependency_4038(modelElement));
		result.addAll(getContainedTypeModelFacetLinks_Manifestation_4039(modelElement));
		result.addAll(getContainedTypeModelFacetLinks_PrimitiveUsage_4050(modelElement));
		result.addAll(getContainedTypeModelFacetLinks_PortUsage_4041(modelElement));
		result.addAll(getContainedTypeModelFacetLinks_PrimitiveRealization_4042(modelElement));
		result.addAll(getContainedTypeModelFacetLinks_PortRealization_4043(modelElement));
		result.addAll(getOutgoingFeatureModelFacetLinks_Entity_Extends_4046(modelElement));
		return result;
	}

	/**
	 * @generated
	 */
	public static List<ComponentBasedSystemLinkDescriptor> getInterface_2024ContainedLinks(
			View view) {
		Interface modelElement = (Interface) view.getElement();
		LinkedList<ComponentBasedSystemLinkDescriptor> result = new LinkedList<ComponentBasedSystemLinkDescriptor>();
		result.addAll(getOutgoingFeatureModelFacetLinks_Entity_Extends_4046(modelElement));
		return result;
	}

	/**
	 * @generated
	 */
	public static List<ComponentBasedSystemLinkDescriptor> getArtifact_2025ContainedLinks(
			View view) {
		Artifact modelElement = (Artifact) view.getElement();
		LinkedList<ComponentBasedSystemLinkDescriptor> result = new LinkedList<ComponentBasedSystemLinkDescriptor>();
		result.addAll(getOutgoingFeatureModelFacetLinks_Entity_Extends_4046(modelElement));
		return result;
	}

	/**
	 * @generated
	 */
	public static List<ComponentBasedSystemLinkDescriptor> getPrimitiveComponent_3019ContainedLinks(
			View view) {
		PrimitiveComponent modelElement = (PrimitiveComponent) view
				.getElement();
		LinkedList<ComponentBasedSystemLinkDescriptor> result = new LinkedList<ComponentBasedSystemLinkDescriptor>();
		result.addAll(getOutgoingFeatureModelFacetLinks_Entity_Extends_4046(modelElement));
		return result;
	}

	/**
	 * @generated
	 */
	public static List<ComponentBasedSystemLinkDescriptor> getCompositeComponent_3020ContainedLinks(
			View view) {
		CompositeComponent modelElement = (CompositeComponent) view
				.getElement();
		LinkedList<ComponentBasedSystemLinkDescriptor> result = new LinkedList<ComponentBasedSystemLinkDescriptor>();
		result.addAll(getContainedTypeModelFacetLinks_Connection_4037(modelElement));
		result.addAll(getContainedTypeModelFacetLinks_Dependency_4038(modelElement));
		result.addAll(getContainedTypeModelFacetLinks_Manifestation_4039(modelElement));
		result.addAll(getContainedTypeModelFacetLinks_PrimitiveUsage_4050(modelElement));
		result.addAll(getContainedTypeModelFacetLinks_PortUsage_4041(modelElement));
		result.addAll(getContainedTypeModelFacetLinks_PrimitiveRealization_4042(modelElement));
		result.addAll(getContainedTypeModelFacetLinks_PortRealization_4043(modelElement));
		result.addAll(getOutgoingFeatureModelFacetLinks_Entity_Extends_4046(modelElement));
		return result;
	}

	/**
	 * @generated
	 */
	public static List<ComponentBasedSystemLinkDescriptor> getInterface_3021ContainedLinks(
			View view) {
		Interface modelElement = (Interface) view.getElement();
		LinkedList<ComponentBasedSystemLinkDescriptor> result = new LinkedList<ComponentBasedSystemLinkDescriptor>();
		result.addAll(getOutgoingFeatureModelFacetLinks_Entity_Extends_4046(modelElement));
		return result;
	}

	/**
	 * @generated
	 */
	public static List<ComponentBasedSystemLinkDescriptor> getArtifact_3022ContainedLinks(
			View view) {
		Artifact modelElement = (Artifact) view.getElement();
		LinkedList<ComponentBasedSystemLinkDescriptor> result = new LinkedList<ComponentBasedSystemLinkDescriptor>();
		result.addAll(getOutgoingFeatureModelFacetLinks_Entity_Extends_4046(modelElement));
		return result;
	}

	/**
	 * @generated
	 */
	public static List<ComponentBasedSystemLinkDescriptor> getProvidingPort_3014ContainedLinks(
			View view) {
		ProvidingPort modelElement = (ProvidingPort) view.getElement();
		LinkedList<ComponentBasedSystemLinkDescriptor> result = new LinkedList<ComponentBasedSystemLinkDescriptor>();
		result.addAll(getOutgoingFeatureModelFacetLinks_ProvidingPort_Delegate_4047(modelElement));
		return result;
	}

	/**
	 * @generated
	 */
	public static List<ComponentBasedSystemLinkDescriptor> getRequiringPort_3015ContainedLinks(
			View view) {
		RequiringPort modelElement = (RequiringPort) view.getElement();
		LinkedList<ComponentBasedSystemLinkDescriptor> result = new LinkedList<ComponentBasedSystemLinkDescriptor>();
		result.addAll(getOutgoingFeatureModelFacetLinks_RequiringPort_Delegate_4048(modelElement));
		return result;
	}

	/**
	 * @generated
	 */
	public static List<ComponentBasedSystemLinkDescriptor> getConnection_4037ContainedLinks(
			View view) {
		return Collections.emptyList();
	}

	/**
	 * @generated
	 */
	public static List<ComponentBasedSystemLinkDescriptor> getDependency_4038ContainedLinks(
			View view) {
		return Collections.emptyList();
	}

	/**
	 * @generated
	 */
	public static List<ComponentBasedSystemLinkDescriptor> getManifestation_4039ContainedLinks(
			View view) {
		return Collections.emptyList();
	}

	/**
	 * @generated
	 */
	public static List<ComponentBasedSystemLinkDescriptor> getPrimitiveUsage_4050ContainedLinks(
			View view) {
		return Collections.emptyList();
	}

	/**
	 * @generated
	 */
	public static List<ComponentBasedSystemLinkDescriptor> getPortUsage_4041ContainedLinks(
			View view) {
		return Collections.emptyList();
	}

	/**
	 * @generated
	 */
	public static List<ComponentBasedSystemLinkDescriptor> getPrimitiveRealization_4042ContainedLinks(
			View view) {
		return Collections.emptyList();
	}

	/**
	 * @generated
	 */
	public static List<ComponentBasedSystemLinkDescriptor> getPortRealization_4043ContainedLinks(
			View view) {
		return Collections.emptyList();
	}

	/**
	 * @generated
	 */
	public static List<ComponentBasedSystemLinkDescriptor> getPrimitiveComponent_2022IncomingLinks(
			View view) {
		PrimitiveComponent modelElement = (PrimitiveComponent) view
				.getElement();
		Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer
				.find(view.eResource().getResourceSet().getResources());
		LinkedList<ComponentBasedSystemLinkDescriptor> result = new LinkedList<ComponentBasedSystemLinkDescriptor>();
		result.addAll(getIncomingTypeModelFacetLinks_Connection_4037(
				modelElement, crossReferences));
		result.addAll(getIncomingTypeModelFacetLinks_Dependency_4038(
				modelElement, crossReferences));
		result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4039(
				modelElement, crossReferences));
		result.addAll(getIncomingFeatureModelFacetLinks_Entity_Extends_4046(
				modelElement, crossReferences));
		return result;
	}

	/**
	 * @generated
	 */
	public static List<ComponentBasedSystemLinkDescriptor> getCompositeComponent_2023IncomingLinks(
			View view) {
		CompositeComponent modelElement = (CompositeComponent) view
				.getElement();
		Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer
				.find(view.eResource().getResourceSet().getResources());
		LinkedList<ComponentBasedSystemLinkDescriptor> result = new LinkedList<ComponentBasedSystemLinkDescriptor>();
		result.addAll(getIncomingTypeModelFacetLinks_Connection_4037(
				modelElement, crossReferences));
		result.addAll(getIncomingTypeModelFacetLinks_Dependency_4038(
				modelElement, crossReferences));
		result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4039(
				modelElement, crossReferences));
		result.addAll(getIncomingFeatureModelFacetLinks_Entity_Extends_4046(
				modelElement, crossReferences));
		return result;
	}

	/**
	 * @generated
	 */
	public static List<ComponentBasedSystemLinkDescriptor> getInterface_2024IncomingLinks(
			View view) {
		Interface modelElement = (Interface) view.getElement();
		Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer
				.find(view.eResource().getResourceSet().getResources());
		LinkedList<ComponentBasedSystemLinkDescriptor> result = new LinkedList<ComponentBasedSystemLinkDescriptor>();
		result.addAll(getIncomingTypeModelFacetLinks_Dependency_4038(
				modelElement, crossReferences));
		result.addAll(getIncomingTypeModelFacetLinks_PrimitiveUsage_4050(
				modelElement, crossReferences));
		result.addAll(getIncomingTypeModelFacetLinks_PortUsage_4041(
				modelElement, crossReferences));
		result.addAll(getIncomingTypeModelFacetLinks_PrimitiveRealization_4042(
				modelElement, crossReferences));
		result.addAll(getIncomingTypeModelFacetLinks_PortRealization_4043(
				modelElement, crossReferences));
		result.addAll(getIncomingFeatureModelFacetLinks_ProvidingPort_Delegate_4047(
				modelElement, crossReferences));
		result.addAll(getIncomingFeatureModelFacetLinks_RequiringPort_Delegate_4048(
				modelElement, crossReferences));
		result.addAll(getIncomingFeatureModelFacetLinks_Entity_Extends_4046(
				modelElement, crossReferences));
		return result;
	}

	/**
	 * @generated
	 */
	public static List<ComponentBasedSystemLinkDescriptor> getArtifact_2025IncomingLinks(
			View view) {
		Artifact modelElement = (Artifact) view.getElement();
		Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer
				.find(view.eResource().getResourceSet().getResources());
		LinkedList<ComponentBasedSystemLinkDescriptor> result = new LinkedList<ComponentBasedSystemLinkDescriptor>();
		result.addAll(getIncomingTypeModelFacetLinks_Dependency_4038(
				modelElement, crossReferences));
		result.addAll(getIncomingFeatureModelFacetLinks_Entity_Extends_4046(
				modelElement, crossReferences));
		return result;
	}

	/**
	 * @generated
	 */
	public static List<ComponentBasedSystemLinkDescriptor> getPrimitiveComponent_3019IncomingLinks(
			View view) {
		PrimitiveComponent modelElement = (PrimitiveComponent) view
				.getElement();
		Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer
				.find(view.eResource().getResourceSet().getResources());
		LinkedList<ComponentBasedSystemLinkDescriptor> result = new LinkedList<ComponentBasedSystemLinkDescriptor>();
		result.addAll(getIncomingTypeModelFacetLinks_Connection_4037(
				modelElement, crossReferences));
		result.addAll(getIncomingTypeModelFacetLinks_Dependency_4038(
				modelElement, crossReferences));
		result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4039(
				modelElement, crossReferences));
		result.addAll(getIncomingFeatureModelFacetLinks_Entity_Extends_4046(
				modelElement, crossReferences));
		return result;
	}

	/**
	 * @generated
	 */
	public static List<ComponentBasedSystemLinkDescriptor> getCompositeComponent_3020IncomingLinks(
			View view) {
		CompositeComponent modelElement = (CompositeComponent) view
				.getElement();
		Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer
				.find(view.eResource().getResourceSet().getResources());
		LinkedList<ComponentBasedSystemLinkDescriptor> result = new LinkedList<ComponentBasedSystemLinkDescriptor>();
		result.addAll(getIncomingTypeModelFacetLinks_Connection_4037(
				modelElement, crossReferences));
		result.addAll(getIncomingTypeModelFacetLinks_Dependency_4038(
				modelElement, crossReferences));
		result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4039(
				modelElement, crossReferences));
		result.addAll(getIncomingFeatureModelFacetLinks_Entity_Extends_4046(
				modelElement, crossReferences));
		return result;
	}

	/**
	 * @generated
	 */
	public static List<ComponentBasedSystemLinkDescriptor> getInterface_3021IncomingLinks(
			View view) {
		Interface modelElement = (Interface) view.getElement();
		Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer
				.find(view.eResource().getResourceSet().getResources());
		LinkedList<ComponentBasedSystemLinkDescriptor> result = new LinkedList<ComponentBasedSystemLinkDescriptor>();
		result.addAll(getIncomingTypeModelFacetLinks_Dependency_4038(
				modelElement, crossReferences));
		result.addAll(getIncomingTypeModelFacetLinks_PrimitiveUsage_4050(
				modelElement, crossReferences));
		result.addAll(getIncomingTypeModelFacetLinks_PortUsage_4041(
				modelElement, crossReferences));
		result.addAll(getIncomingTypeModelFacetLinks_PrimitiveRealization_4042(
				modelElement, crossReferences));
		result.addAll(getIncomingTypeModelFacetLinks_PortRealization_4043(
				modelElement, crossReferences));
		result.addAll(getIncomingFeatureModelFacetLinks_ProvidingPort_Delegate_4047(
				modelElement, crossReferences));
		result.addAll(getIncomingFeatureModelFacetLinks_RequiringPort_Delegate_4048(
				modelElement, crossReferences));
		result.addAll(getIncomingFeatureModelFacetLinks_Entity_Extends_4046(
				modelElement, crossReferences));
		return result;
	}

	/**
	 * @generated
	 */
	public static List<ComponentBasedSystemLinkDescriptor> getArtifact_3022IncomingLinks(
			View view) {
		Artifact modelElement = (Artifact) view.getElement();
		Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer
				.find(view.eResource().getResourceSet().getResources());
		LinkedList<ComponentBasedSystemLinkDescriptor> result = new LinkedList<ComponentBasedSystemLinkDescriptor>();
		result.addAll(getIncomingTypeModelFacetLinks_Dependency_4038(
				modelElement, crossReferences));
		result.addAll(getIncomingFeatureModelFacetLinks_Entity_Extends_4046(
				modelElement, crossReferences));
		return result;
	}

	/**
	 * @generated
	 */
	public static List<ComponentBasedSystemLinkDescriptor> getProvidingPort_3014IncomingLinks(
			View view) {
		return Collections.emptyList();
	}

	/**
	 * @generated
	 */
	public static List<ComponentBasedSystemLinkDescriptor> getRequiringPort_3015IncomingLinks(
			View view) {
		return Collections.emptyList();
	}

	/**
	 * @generated
	 */
	public static List<ComponentBasedSystemLinkDescriptor> getConnection_4037IncomingLinks(
			View view) {
		return Collections.emptyList();
	}

	/**
	 * @generated
	 */
	public static List<ComponentBasedSystemLinkDescriptor> getDependency_4038IncomingLinks(
			View view) {
		return Collections.emptyList();
	}

	/**
	 * @generated
	 */
	public static List<ComponentBasedSystemLinkDescriptor> getManifestation_4039IncomingLinks(
			View view) {
		return Collections.emptyList();
	}

	/**
	 * @generated
	 */
	public static List<ComponentBasedSystemLinkDescriptor> getPrimitiveUsage_4050IncomingLinks(
			View view) {
		return Collections.emptyList();
	}

	/**
	 * @generated
	 */
	public static List<ComponentBasedSystemLinkDescriptor> getPortUsage_4041IncomingLinks(
			View view) {
		return Collections.emptyList();
	}

	/**
	 * @generated
	 */
	public static List<ComponentBasedSystemLinkDescriptor> getPrimitiveRealization_4042IncomingLinks(
			View view) {
		return Collections.emptyList();
	}

	/**
	 * @generated
	 */
	public static List<ComponentBasedSystemLinkDescriptor> getPortRealization_4043IncomingLinks(
			View view) {
		return Collections.emptyList();
	}

	/**
	 * @generated
	 */
	public static List<ComponentBasedSystemLinkDescriptor> getPrimitiveComponent_2022OutgoingLinks(
			View view) {
		PrimitiveComponent modelElement = (PrimitiveComponent) view
				.getElement();
		LinkedList<ComponentBasedSystemLinkDescriptor> result = new LinkedList<ComponentBasedSystemLinkDescriptor>();
		result.addAll(getOutgoingTypeModelFacetLinks_Connection_4037(modelElement));
		result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4038(modelElement));
		result.addAll(getOutgoingTypeModelFacetLinks_PrimitiveUsage_4050(modelElement));
		result.addAll(getOutgoingTypeModelFacetLinks_PrimitiveRealization_4042(modelElement));
		result.addAll(getOutgoingFeatureModelFacetLinks_Entity_Extends_4046(modelElement));
		return result;
	}

	/**
	 * @generated
	 */
	public static List<ComponentBasedSystemLinkDescriptor> getCompositeComponent_2023OutgoingLinks(
			View view) {
		CompositeComponent modelElement = (CompositeComponent) view
				.getElement();
		LinkedList<ComponentBasedSystemLinkDescriptor> result = new LinkedList<ComponentBasedSystemLinkDescriptor>();
		result.addAll(getOutgoingTypeModelFacetLinks_Connection_4037(modelElement));
		result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4038(modelElement));
		result.addAll(getOutgoingFeatureModelFacetLinks_Entity_Extends_4046(modelElement));
		return result;
	}

	/**
	 * @generated
	 */
	public static List<ComponentBasedSystemLinkDescriptor> getInterface_2024OutgoingLinks(
			View view) {
		Interface modelElement = (Interface) view.getElement();
		LinkedList<ComponentBasedSystemLinkDescriptor> result = new LinkedList<ComponentBasedSystemLinkDescriptor>();
		result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4038(modelElement));
		result.addAll(getOutgoingFeatureModelFacetLinks_Entity_Extends_4046(modelElement));
		return result;
	}

	/**
	 * @generated
	 */
	public static List<ComponentBasedSystemLinkDescriptor> getArtifact_2025OutgoingLinks(
			View view) {
		Artifact modelElement = (Artifact) view.getElement();
		LinkedList<ComponentBasedSystemLinkDescriptor> result = new LinkedList<ComponentBasedSystemLinkDescriptor>();
		result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4038(modelElement));
		result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4039(modelElement));
		result.addAll(getOutgoingFeatureModelFacetLinks_Entity_Extends_4046(modelElement));
		return result;
	}

	/**
	 * @generated
	 */
	public static List<ComponentBasedSystemLinkDescriptor> getPrimitiveComponent_3019OutgoingLinks(
			View view) {
		PrimitiveComponent modelElement = (PrimitiveComponent) view
				.getElement();
		LinkedList<ComponentBasedSystemLinkDescriptor> result = new LinkedList<ComponentBasedSystemLinkDescriptor>();
		result.addAll(getOutgoingTypeModelFacetLinks_Connection_4037(modelElement));
		result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4038(modelElement));
		result.addAll(getOutgoingTypeModelFacetLinks_PrimitiveUsage_4050(modelElement));
		result.addAll(getOutgoingTypeModelFacetLinks_PrimitiveRealization_4042(modelElement));
		result.addAll(getOutgoingFeatureModelFacetLinks_Entity_Extends_4046(modelElement));
		return result;
	}

	/**
	 * @generated
	 */
	public static List<ComponentBasedSystemLinkDescriptor> getCompositeComponent_3020OutgoingLinks(
			View view) {
		CompositeComponent modelElement = (CompositeComponent) view
				.getElement();
		LinkedList<ComponentBasedSystemLinkDescriptor> result = new LinkedList<ComponentBasedSystemLinkDescriptor>();
		result.addAll(getOutgoingTypeModelFacetLinks_Connection_4037(modelElement));
		result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4038(modelElement));
		result.addAll(getOutgoingFeatureModelFacetLinks_Entity_Extends_4046(modelElement));
		return result;
	}

	/**
	 * @generated
	 */
	public static List<ComponentBasedSystemLinkDescriptor> getInterface_3021OutgoingLinks(
			View view) {
		Interface modelElement = (Interface) view.getElement();
		LinkedList<ComponentBasedSystemLinkDescriptor> result = new LinkedList<ComponentBasedSystemLinkDescriptor>();
		result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4038(modelElement));
		result.addAll(getOutgoingFeatureModelFacetLinks_Entity_Extends_4046(modelElement));
		return result;
	}

	/**
	 * @generated
	 */
	public static List<ComponentBasedSystemLinkDescriptor> getArtifact_3022OutgoingLinks(
			View view) {
		Artifact modelElement = (Artifact) view.getElement();
		LinkedList<ComponentBasedSystemLinkDescriptor> result = new LinkedList<ComponentBasedSystemLinkDescriptor>();
		result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4038(modelElement));
		result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4039(modelElement));
		result.addAll(getOutgoingFeatureModelFacetLinks_Entity_Extends_4046(modelElement));
		return result;
	}

	/**
	 * @generated
	 */
	public static List<ComponentBasedSystemLinkDescriptor> getProvidingPort_3014OutgoingLinks(
			View view) {
		ProvidingPort modelElement = (ProvidingPort) view.getElement();
		LinkedList<ComponentBasedSystemLinkDescriptor> result = new LinkedList<ComponentBasedSystemLinkDescriptor>();
		result.addAll(getOutgoingTypeModelFacetLinks_PortRealization_4043(modelElement));
		result.addAll(getOutgoingFeatureModelFacetLinks_ProvidingPort_Delegate_4047(modelElement));
		return result;
	}

	/**
	 * @generated
	 */
	public static List<ComponentBasedSystemLinkDescriptor> getRequiringPort_3015OutgoingLinks(
			View view) {
		RequiringPort modelElement = (RequiringPort) view.getElement();
		LinkedList<ComponentBasedSystemLinkDescriptor> result = new LinkedList<ComponentBasedSystemLinkDescriptor>();
		result.addAll(getOutgoingTypeModelFacetLinks_PortUsage_4041(modelElement));
		result.addAll(getOutgoingFeatureModelFacetLinks_RequiringPort_Delegate_4048(modelElement));
		return result;
	}

	/**
	 * @generated
	 */
	public static List<ComponentBasedSystemLinkDescriptor> getConnection_4037OutgoingLinks(
			View view) {
		return Collections.emptyList();
	}

	/**
	 * @generated
	 */
	public static List<ComponentBasedSystemLinkDescriptor> getDependency_4038OutgoingLinks(
			View view) {
		return Collections.emptyList();
	}

	/**
	 * @generated
	 */
	public static List<ComponentBasedSystemLinkDescriptor> getManifestation_4039OutgoingLinks(
			View view) {
		return Collections.emptyList();
	}

	/**
	 * @generated
	 */
	public static List<ComponentBasedSystemLinkDescriptor> getPrimitiveUsage_4050OutgoingLinks(
			View view) {
		return Collections.emptyList();
	}

	/**
	 * @generated
	 */
	public static List<ComponentBasedSystemLinkDescriptor> getPortUsage_4041OutgoingLinks(
			View view) {
		return Collections.emptyList();
	}

	/**
	 * @generated
	 */
	public static List<ComponentBasedSystemLinkDescriptor> getPrimitiveRealization_4042OutgoingLinks(
			View view) {
		return Collections.emptyList();
	}

	/**
	 * @generated
	 */
	public static List<ComponentBasedSystemLinkDescriptor> getPortRealization_4043OutgoingLinks(
			View view) {
		return Collections.emptyList();
	}

	/**
	 * @generated
	 */
	private static Collection<ComponentBasedSystemLinkDescriptor> getContainedTypeModelFacetLinks_Connection_4037(
			IElementsContainer container) {
		LinkedList<ComponentBasedSystemLinkDescriptor> result = new LinkedList<ComponentBasedSystemLinkDescriptor>();
		for (Iterator<?> links = container.getElements().iterator(); links
				.hasNext();) {
			EObject linkObject = (EObject) links.next();
			if (false == linkObject instanceof Connection) {
				continue;
			}
			Connection link = (Connection) linkObject;
			if (ConnectionEditPart.VISUAL_ID != ComponentBasedSystemVisualIDRegistry
					.getLinkWithClassVisualID(link)) {
				continue;
			}
			Component dst = link.getTo();
			Component src = link.getFrom();
			result.add(new ComponentBasedSystemLinkDescriptor(src, dst, link,
					ComponentBasedSystemElementTypes.Connection_4037,
					ConnectionEditPart.VISUAL_ID));
		}
		return result;
	}

	/**
	 * @generated
	 */
	private static Collection<ComponentBasedSystemLinkDescriptor> getContainedTypeModelFacetLinks_Dependency_4038(
			IElementsContainer container) {
		LinkedList<ComponentBasedSystemLinkDescriptor> result = new LinkedList<ComponentBasedSystemLinkDescriptor>();
		for (Iterator<?> links = container.getElements().iterator(); links
				.hasNext();) {
			EObject linkObject = (EObject) links.next();
			if (false == linkObject instanceof Dependency) {
				continue;
			}
			Dependency link = (Dependency) linkObject;
			if (DependencyEditPart.VISUAL_ID != ComponentBasedSystemVisualIDRegistry
					.getLinkWithClassVisualID(link)) {
				continue;
			}
			Entity dst = link.getTo();
			Entity src = link.getFrom();
			result.add(new ComponentBasedSystemLinkDescriptor(src, dst, link,
					ComponentBasedSystemElementTypes.Dependency_4038,
					DependencyEditPart.VISUAL_ID));
		}
		return result;
	}

	/**
	 * @generated
	 */
	private static Collection<ComponentBasedSystemLinkDescriptor> getContainedTypeModelFacetLinks_Manifestation_4039(
			IElementsContainer container) {
		LinkedList<ComponentBasedSystemLinkDescriptor> result = new LinkedList<ComponentBasedSystemLinkDescriptor>();
		for (Iterator<?> links = container.getElements().iterator(); links
				.hasNext();) {
			EObject linkObject = (EObject) links.next();
			if (false == linkObject instanceof Manifestation) {
				continue;
			}
			Manifestation link = (Manifestation) linkObject;
			if (ManifestationEditPart.VISUAL_ID != ComponentBasedSystemVisualIDRegistry
					.getLinkWithClassVisualID(link)) {
				continue;
			}
			Component dst = link.getComponent();
			Artifact src = link.getArtifact();
			result.add(new ComponentBasedSystemLinkDescriptor(src, dst, link,
					ComponentBasedSystemElementTypes.Manifestation_4039,
					ManifestationEditPart.VISUAL_ID));
		}
		return result;
	}

	/**
	 * @generated
	 */
	private static Collection<ComponentBasedSystemLinkDescriptor> getContainedTypeModelFacetLinks_PrimitiveUsage_4050(
			IElementsContainer container) {
		LinkedList<ComponentBasedSystemLinkDescriptor> result = new LinkedList<ComponentBasedSystemLinkDescriptor>();
		for (Iterator<?> links = container.getElements().iterator(); links
				.hasNext();) {
			EObject linkObject = (EObject) links.next();
			if (false == linkObject instanceof PrimitiveUsage) {
				continue;
			}
			PrimitiveUsage link = (PrimitiveUsage) linkObject;
			if (PrimitiveUsageEditPart.VISUAL_ID != ComponentBasedSystemVisualIDRegistry
					.getLinkWithClassVisualID(link)) {
				continue;
			}
			Interface dst = link.getInterface();
			PrimitiveComponent src = link.getComponent();
			result.add(new ComponentBasedSystemLinkDescriptor(src, dst, link,
					ComponentBasedSystemElementTypes.PrimitiveUsage_4050,
					PrimitiveUsageEditPart.VISUAL_ID));
		}
		return result;
	}

	/**
	 * @generated
	 */
	private static Collection<ComponentBasedSystemLinkDescriptor> getContainedTypeModelFacetLinks_PortUsage_4041(
			IElementsContainer container) {
		LinkedList<ComponentBasedSystemLinkDescriptor> result = new LinkedList<ComponentBasedSystemLinkDescriptor>();
		for (Iterator<?> links = container.getElements().iterator(); links
				.hasNext();) {
			EObject linkObject = (EObject) links.next();
			if (false == linkObject instanceof PortUsage) {
				continue;
			}
			PortUsage link = (PortUsage) linkObject;
			if (PortUsageEditPart.VISUAL_ID != ComponentBasedSystemVisualIDRegistry
					.getLinkWithClassVisualID(link)) {
				continue;
			}
			Interface dst = link.getInterface();
			RequiringPort src = link.getPort();
			result.add(new ComponentBasedSystemLinkDescriptor(src, dst, link,
					ComponentBasedSystemElementTypes.PortUsage_4041,
					PortUsageEditPart.VISUAL_ID));
		}
		return result;
	}

	/**
	 * @generated
	 */
	private static Collection<ComponentBasedSystemLinkDescriptor> getContainedTypeModelFacetLinks_PrimitiveRealization_4042(
			IElementsContainer container) {
		LinkedList<ComponentBasedSystemLinkDescriptor> result = new LinkedList<ComponentBasedSystemLinkDescriptor>();
		for (Iterator<?> links = container.getElements().iterator(); links
				.hasNext();) {
			EObject linkObject = (EObject) links.next();
			if (false == linkObject instanceof PrimitiveRealization) {
				continue;
			}
			PrimitiveRealization link = (PrimitiveRealization) linkObject;
			if (PrimitiveRealizationEditPart.VISUAL_ID != ComponentBasedSystemVisualIDRegistry
					.getLinkWithClassVisualID(link)) {
				continue;
			}
			Interface dst = link.getInterface();
			PrimitiveComponent src = link.getComponent();
			result.add(new ComponentBasedSystemLinkDescriptor(src, dst, link,
					ComponentBasedSystemElementTypes.PrimitiveRealization_4042,
					PrimitiveRealizationEditPart.VISUAL_ID));
		}
		return result;
	}

	/**
	 * @generated
	 */
	private static Collection<ComponentBasedSystemLinkDescriptor> getContainedTypeModelFacetLinks_PortRealization_4043(
			IElementsContainer container) {
		LinkedList<ComponentBasedSystemLinkDescriptor> result = new LinkedList<ComponentBasedSystemLinkDescriptor>();
		for (Iterator<?> links = container.getElements().iterator(); links
				.hasNext();) {
			EObject linkObject = (EObject) links.next();
			if (false == linkObject instanceof PortRealization) {
				continue;
			}
			PortRealization link = (PortRealization) linkObject;
			if (PortRealizationEditPart.VISUAL_ID != ComponentBasedSystemVisualIDRegistry
					.getLinkWithClassVisualID(link)) {
				continue;
			}
			Interface dst = link.getInterface();
			ProvidingPort src = link.getPort();
			result.add(new ComponentBasedSystemLinkDescriptor(src, dst, link,
					ComponentBasedSystemElementTypes.PortRealization_4043,
					PortRealizationEditPart.VISUAL_ID));
		}
		return result;
	}

	/**
	 * @generated
	 */
	private static Collection<ComponentBasedSystemLinkDescriptor> getIncomingTypeModelFacetLinks_Connection_4037(
			Component target,
			Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences) {
		LinkedList<ComponentBasedSystemLinkDescriptor> result = new LinkedList<ComponentBasedSystemLinkDescriptor>();
		Collection<EStructuralFeature.Setting> settings = crossReferences
				.get(target);
		for (EStructuralFeature.Setting setting : settings) {
			if (setting.getEStructuralFeature() != TfmcbsPackage.eINSTANCE
					.getConnection_To()
					|| false == setting.getEObject() instanceof Connection) {
				continue;
			}
			Connection link = (Connection) setting.getEObject();
			if (ConnectionEditPart.VISUAL_ID != ComponentBasedSystemVisualIDRegistry
					.getLinkWithClassVisualID(link)) {
				continue;
			}
			Component src = link.getFrom();
			result.add(new ComponentBasedSystemLinkDescriptor(src, target,
					link, ComponentBasedSystemElementTypes.Connection_4037,
					ConnectionEditPart.VISUAL_ID));
		}
		return result;
	}

	/**
	 * @generated
	 */
	private static Collection<ComponentBasedSystemLinkDescriptor> getIncomingTypeModelFacetLinks_Dependency_4038(
			Entity target,
			Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences) {
		LinkedList<ComponentBasedSystemLinkDescriptor> result = new LinkedList<ComponentBasedSystemLinkDescriptor>();
		Collection<EStructuralFeature.Setting> settings = crossReferences
				.get(target);
		for (EStructuralFeature.Setting setting : settings) {
			if (setting.getEStructuralFeature() != TfmcbsPackage.eINSTANCE
					.getDependency_To()
					|| false == setting.getEObject() instanceof Dependency) {
				continue;
			}
			Dependency link = (Dependency) setting.getEObject();
			if (DependencyEditPart.VISUAL_ID != ComponentBasedSystemVisualIDRegistry
					.getLinkWithClassVisualID(link)) {
				continue;
			}
			Entity src = link.getFrom();
			result.add(new ComponentBasedSystemLinkDescriptor(src, target,
					link, ComponentBasedSystemElementTypes.Dependency_4038,
					DependencyEditPart.VISUAL_ID));
		}
		return result;
	}

	/**
	 * @generated
	 */
	private static Collection<ComponentBasedSystemLinkDescriptor> getIncomingTypeModelFacetLinks_Manifestation_4039(
			Component target,
			Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences) {
		LinkedList<ComponentBasedSystemLinkDescriptor> result = new LinkedList<ComponentBasedSystemLinkDescriptor>();
		Collection<EStructuralFeature.Setting> settings = crossReferences
				.get(target);
		for (EStructuralFeature.Setting setting : settings) {
			if (setting.getEStructuralFeature() != TfmcbsPackage.eINSTANCE
					.getManifestation_Component()
					|| false == setting.getEObject() instanceof Manifestation) {
				continue;
			}
			Manifestation link = (Manifestation) setting.getEObject();
			if (ManifestationEditPart.VISUAL_ID != ComponentBasedSystemVisualIDRegistry
					.getLinkWithClassVisualID(link)) {
				continue;
			}
			Artifact src = link.getArtifact();
			result.add(new ComponentBasedSystemLinkDescriptor(src, target,
					link, ComponentBasedSystemElementTypes.Manifestation_4039,
					ManifestationEditPart.VISUAL_ID));
		}
		return result;
	}

	/**
	 * @generated
	 */
	private static Collection<ComponentBasedSystemLinkDescriptor> getIncomingTypeModelFacetLinks_PrimitiveUsage_4050(
			Interface target,
			Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences) {
		LinkedList<ComponentBasedSystemLinkDescriptor> result = new LinkedList<ComponentBasedSystemLinkDescriptor>();
		Collection<EStructuralFeature.Setting> settings = crossReferences
				.get(target);
		for (EStructuralFeature.Setting setting : settings) {
			if (setting.getEStructuralFeature() != TfmcbsPackage.eINSTANCE
					.getUsage_Interface()
					|| false == setting.getEObject() instanceof PrimitiveUsage) {
				continue;
			}
			PrimitiveUsage link = (PrimitiveUsage) setting.getEObject();
			if (PrimitiveUsageEditPart.VISUAL_ID != ComponentBasedSystemVisualIDRegistry
					.getLinkWithClassVisualID(link)) {
				continue;
			}
			PrimitiveComponent src = link.getComponent();
			result.add(new ComponentBasedSystemLinkDescriptor(src, target,
					link, ComponentBasedSystemElementTypes.PrimitiveUsage_4050,
					PrimitiveUsageEditPart.VISUAL_ID));
		}
		return result;
	}

	/**
	 * @generated
	 */
	private static Collection<ComponentBasedSystemLinkDescriptor> getIncomingTypeModelFacetLinks_PortUsage_4041(
			Interface target,
			Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences) {
		LinkedList<ComponentBasedSystemLinkDescriptor> result = new LinkedList<ComponentBasedSystemLinkDescriptor>();
		Collection<EStructuralFeature.Setting> settings = crossReferences
				.get(target);
		for (EStructuralFeature.Setting setting : settings) {
			if (setting.getEStructuralFeature() != TfmcbsPackage.eINSTANCE
					.getUsage_Interface()
					|| false == setting.getEObject() instanceof PortUsage) {
				continue;
			}
			PortUsage link = (PortUsage) setting.getEObject();
			if (PortUsageEditPart.VISUAL_ID != ComponentBasedSystemVisualIDRegistry
					.getLinkWithClassVisualID(link)) {
				continue;
			}
			RequiringPort src = link.getPort();
			result.add(new ComponentBasedSystemLinkDescriptor(src, target,
					link, ComponentBasedSystemElementTypes.PortUsage_4041,
					PortUsageEditPart.VISUAL_ID));
		}
		return result;
	}

	/**
	 * @generated
	 */
	private static Collection<ComponentBasedSystemLinkDescriptor> getIncomingTypeModelFacetLinks_PrimitiveRealization_4042(
			Interface target,
			Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences) {
		LinkedList<ComponentBasedSystemLinkDescriptor> result = new LinkedList<ComponentBasedSystemLinkDescriptor>();
		Collection<EStructuralFeature.Setting> settings = crossReferences
				.get(target);
		for (EStructuralFeature.Setting setting : settings) {
			if (setting.getEStructuralFeature() != TfmcbsPackage.eINSTANCE
					.getRealization_Interface()
					|| false == setting.getEObject() instanceof PrimitiveRealization) {
				continue;
			}
			PrimitiveRealization link = (PrimitiveRealization) setting
					.getEObject();
			if (PrimitiveRealizationEditPart.VISUAL_ID != ComponentBasedSystemVisualIDRegistry
					.getLinkWithClassVisualID(link)) {
				continue;
			}
			PrimitiveComponent src = link.getComponent();
			result.add(new ComponentBasedSystemLinkDescriptor(src, target,
					link,
					ComponentBasedSystemElementTypes.PrimitiveRealization_4042,
					PrimitiveRealizationEditPart.VISUAL_ID));
		}
		return result;
	}

	/**
	 * @generated
	 */
	private static Collection<ComponentBasedSystemLinkDescriptor> getIncomingTypeModelFacetLinks_PortRealization_4043(
			Interface target,
			Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences) {
		LinkedList<ComponentBasedSystemLinkDescriptor> result = new LinkedList<ComponentBasedSystemLinkDescriptor>();
		Collection<EStructuralFeature.Setting> settings = crossReferences
				.get(target);
		for (EStructuralFeature.Setting setting : settings) {
			if (setting.getEStructuralFeature() != TfmcbsPackage.eINSTANCE
					.getRealization_Interface()
					|| false == setting.getEObject() instanceof PortRealization) {
				continue;
			}
			PortRealization link = (PortRealization) setting.getEObject();
			if (PortRealizationEditPart.VISUAL_ID != ComponentBasedSystemVisualIDRegistry
					.getLinkWithClassVisualID(link)) {
				continue;
			}
			ProvidingPort src = link.getPort();
			result.add(new ComponentBasedSystemLinkDescriptor(src, target,
					link,
					ComponentBasedSystemElementTypes.PortRealization_4043,
					PortRealizationEditPart.VISUAL_ID));
		}
		return result;
	}

	/**
	 * @generated
	 */
	private static Collection<ComponentBasedSystemLinkDescriptor> getIncomingFeatureModelFacetLinks_ProvidingPort_Delegate_4047(
			Interface target,
			Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences) {
		LinkedList<ComponentBasedSystemLinkDescriptor> result = new LinkedList<ComponentBasedSystemLinkDescriptor>();
		Collection<EStructuralFeature.Setting> settings = crossReferences
				.get(target);
		for (EStructuralFeature.Setting setting : settings) {
			if (setting.getEStructuralFeature() == TfmcbsPackage.eINSTANCE
					.getProvidingPort_Delegate()) {
				result.add(new ComponentBasedSystemLinkDescriptor(
						setting.getEObject(),
						target,
						ComponentBasedSystemElementTypes.ProvidingPortDelegate_4047,
						ProvidingPortDelegateEditPart.VISUAL_ID));
			}
		}
		return result;
	}

	/**
	 * @generated
	 */
	private static Collection<ComponentBasedSystemLinkDescriptor> getIncomingFeatureModelFacetLinks_RequiringPort_Delegate_4048(
			Interface target,
			Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences) {
		LinkedList<ComponentBasedSystemLinkDescriptor> result = new LinkedList<ComponentBasedSystemLinkDescriptor>();
		Collection<EStructuralFeature.Setting> settings = crossReferences
				.get(target);
		for (EStructuralFeature.Setting setting : settings) {
			if (setting.getEStructuralFeature() == TfmcbsPackage.eINSTANCE
					.getRequiringPort_Delegate()) {
				result.add(new ComponentBasedSystemLinkDescriptor(
						setting.getEObject(),
						target,
						ComponentBasedSystemElementTypes.RequiringPortDelegate_4048,
						RequiringPortDelegateEditPart.VISUAL_ID));
			}
		}
		return result;
	}

	/**
	 * @generated
	 */
	private static Collection<ComponentBasedSystemLinkDescriptor> getIncomingFeatureModelFacetLinks_Entity_Extends_4046(
			Entity target,
			Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences) {
		LinkedList<ComponentBasedSystemLinkDescriptor> result = new LinkedList<ComponentBasedSystemLinkDescriptor>();
		Collection<EStructuralFeature.Setting> settings = crossReferences
				.get(target);
		for (EStructuralFeature.Setting setting : settings) {
			if (setting.getEStructuralFeature() == TfmcbsPackage.eINSTANCE
					.getEntity_Extends()) {
				result.add(new ComponentBasedSystemLinkDescriptor(setting
						.getEObject(), target,
						ComponentBasedSystemElementTypes.EntityExtends_4046,
						EntityExtendsEditPart.VISUAL_ID));
			}
		}
		return result;
	}

	/**
	 * @generated
	 */
	private static Collection<ComponentBasedSystemLinkDescriptor> getOutgoingTypeModelFacetLinks_Connection_4037(
			Component source) {
		IElementsContainer container = null;
		// Find container element for the link.
		// Climb up by containment hierarchy starting from the source
		// and return the first element that is instance of the container class.
		for (EObject element = source; element != null && container == null; element = element
				.eContainer()) {
			if (element instanceof IElementsContainer) {
				container = (IElementsContainer) element;
			}
		}
		if (container == null) {
			return Collections.emptyList();
		}
		LinkedList<ComponentBasedSystemLinkDescriptor> result = new LinkedList<ComponentBasedSystemLinkDescriptor>();
		for (Iterator<?> links = container.getElements().iterator(); links
				.hasNext();) {
			EObject linkObject = (EObject) links.next();
			if (false == linkObject instanceof Connection) {
				continue;
			}
			Connection link = (Connection) linkObject;
			if (ConnectionEditPart.VISUAL_ID != ComponentBasedSystemVisualIDRegistry
					.getLinkWithClassVisualID(link)) {
				continue;
			}
			Component dst = link.getTo();
			Component src = link.getFrom();
			if (src != source) {
				continue;
			}
			result.add(new ComponentBasedSystemLinkDescriptor(src, dst, link,
					ComponentBasedSystemElementTypes.Connection_4037,
					ConnectionEditPart.VISUAL_ID));
		}
		return result;
	}

	/**
	 * @generated
	 */
	private static Collection<ComponentBasedSystemLinkDescriptor> getOutgoingTypeModelFacetLinks_Dependency_4038(
			Entity source) {
		IElementsContainer container = null;
		// Find container element for the link.
		// Climb up by containment hierarchy starting from the source
		// and return the first element that is instance of the container class.
		for (EObject element = source; element != null && container == null; element = element
				.eContainer()) {
			if (element instanceof IElementsContainer) {
				container = (IElementsContainer) element;
			}
		}
		if (container == null) {
			return Collections.emptyList();
		}
		LinkedList<ComponentBasedSystemLinkDescriptor> result = new LinkedList<ComponentBasedSystemLinkDescriptor>();
		for (Iterator<?> links = container.getElements().iterator(); links
				.hasNext();) {
			EObject linkObject = (EObject) links.next();
			if (false == linkObject instanceof Dependency) {
				continue;
			}
			Dependency link = (Dependency) linkObject;
			if (DependencyEditPart.VISUAL_ID != ComponentBasedSystemVisualIDRegistry
					.getLinkWithClassVisualID(link)) {
				continue;
			}
			Entity dst = link.getTo();
			Entity src = link.getFrom();
			if (src != source) {
				continue;
			}
			result.add(new ComponentBasedSystemLinkDescriptor(src, dst, link,
					ComponentBasedSystemElementTypes.Dependency_4038,
					DependencyEditPart.VISUAL_ID));
		}
		return result;
	}

	/**
	 * @generated
	 */
	private static Collection<ComponentBasedSystemLinkDescriptor> getOutgoingTypeModelFacetLinks_Manifestation_4039(
			Artifact source) {
		IElementsContainer container = null;
		// Find container element for the link.
		// Climb up by containment hierarchy starting from the source
		// and return the first element that is instance of the container class.
		for (EObject element = source; element != null && container == null; element = element
				.eContainer()) {
			if (element instanceof IElementsContainer) {
				container = (IElementsContainer) element;
			}
		}
		if (container == null) {
			return Collections.emptyList();
		}
		LinkedList<ComponentBasedSystemLinkDescriptor> result = new LinkedList<ComponentBasedSystemLinkDescriptor>();
		for (Iterator<?> links = container.getElements().iterator(); links
				.hasNext();) {
			EObject linkObject = (EObject) links.next();
			if (false == linkObject instanceof Manifestation) {
				continue;
			}
			Manifestation link = (Manifestation) linkObject;
			if (ManifestationEditPart.VISUAL_ID != ComponentBasedSystemVisualIDRegistry
					.getLinkWithClassVisualID(link)) {
				continue;
			}
			Component dst = link.getComponent();
			Artifact src = link.getArtifact();
			if (src != source) {
				continue;
			}
			result.add(new ComponentBasedSystemLinkDescriptor(src, dst, link,
					ComponentBasedSystemElementTypes.Manifestation_4039,
					ManifestationEditPart.VISUAL_ID));
		}
		return result;
	}

	/**
	 * @generated
	 */
	private static Collection<ComponentBasedSystemLinkDescriptor> getOutgoingTypeModelFacetLinks_PrimitiveUsage_4050(
			PrimitiveComponent source) {
		IElementsContainer container = null;
		// Find container element for the link.
		// Climb up by containment hierarchy starting from the source
		// and return the first element that is instance of the container class.
		for (EObject element = source; element != null && container == null; element = element
				.eContainer()) {
			if (element instanceof IElementsContainer) {
				container = (IElementsContainer) element;
			}
		}
		if (container == null) {
			return Collections.emptyList();
		}
		LinkedList<ComponentBasedSystemLinkDescriptor> result = new LinkedList<ComponentBasedSystemLinkDescriptor>();
		for (Iterator<?> links = container.getElements().iterator(); links
				.hasNext();) {
			EObject linkObject = (EObject) links.next();
			if (false == linkObject instanceof PrimitiveUsage) {
				continue;
			}
			PrimitiveUsage link = (PrimitiveUsage) linkObject;
			if (PrimitiveUsageEditPart.VISUAL_ID != ComponentBasedSystemVisualIDRegistry
					.getLinkWithClassVisualID(link)) {
				continue;
			}
			Interface dst = link.getInterface();
			PrimitiveComponent src = link.getComponent();
			if (src != source) {
				continue;
			}
			result.add(new ComponentBasedSystemLinkDescriptor(src, dst, link,
					ComponentBasedSystemElementTypes.PrimitiveUsage_4050,
					PrimitiveUsageEditPart.VISUAL_ID));
		}
		return result;
	}

	/**
	 * @generated
	 */
	private static Collection<ComponentBasedSystemLinkDescriptor> getOutgoingTypeModelFacetLinks_PortUsage_4041(
			RequiringPort source) {
		IElementsContainer container = null;
		// Find container element for the link.
		// Climb up by containment hierarchy starting from the source
		// and return the first element that is instance of the container class.
		for (EObject element = source; element != null && container == null; element = element
				.eContainer()) {
			if (element instanceof IElementsContainer) {
				container = (IElementsContainer) element;
			}
		}
		if (container == null) {
			return Collections.emptyList();
		}
		LinkedList<ComponentBasedSystemLinkDescriptor> result = new LinkedList<ComponentBasedSystemLinkDescriptor>();
		for (Iterator<?> links = container.getElements().iterator(); links
				.hasNext();) {
			EObject linkObject = (EObject) links.next();
			if (false == linkObject instanceof PortUsage) {
				continue;
			}
			PortUsage link = (PortUsage) linkObject;
			if (PortUsageEditPart.VISUAL_ID != ComponentBasedSystemVisualIDRegistry
					.getLinkWithClassVisualID(link)) {
				continue;
			}
			Interface dst = link.getInterface();
			RequiringPort src = link.getPort();
			if (src != source) {
				continue;
			}
			result.add(new ComponentBasedSystemLinkDescriptor(src, dst, link,
					ComponentBasedSystemElementTypes.PortUsage_4041,
					PortUsageEditPart.VISUAL_ID));
		}
		return result;
	}

	/**
	 * @generated
	 */
	private static Collection<ComponentBasedSystemLinkDescriptor> getOutgoingTypeModelFacetLinks_PrimitiveRealization_4042(
			PrimitiveComponent source) {
		IElementsContainer container = null;
		// Find container element for the link.
		// Climb up by containment hierarchy starting from the source
		// and return the first element that is instance of the container class.
		for (EObject element = source; element != null && container == null; element = element
				.eContainer()) {
			if (element instanceof IElementsContainer) {
				container = (IElementsContainer) element;
			}
		}
		if (container == null) {
			return Collections.emptyList();
		}
		LinkedList<ComponentBasedSystemLinkDescriptor> result = new LinkedList<ComponentBasedSystemLinkDescriptor>();
		for (Iterator<?> links = container.getElements().iterator(); links
				.hasNext();) {
			EObject linkObject = (EObject) links.next();
			if (false == linkObject instanceof PrimitiveRealization) {
				continue;
			}
			PrimitiveRealization link = (PrimitiveRealization) linkObject;
			if (PrimitiveRealizationEditPart.VISUAL_ID != ComponentBasedSystemVisualIDRegistry
					.getLinkWithClassVisualID(link)) {
				continue;
			}
			Interface dst = link.getInterface();
			PrimitiveComponent src = link.getComponent();
			if (src != source) {
				continue;
			}
			result.add(new ComponentBasedSystemLinkDescriptor(src, dst, link,
					ComponentBasedSystemElementTypes.PrimitiveRealization_4042,
					PrimitiveRealizationEditPart.VISUAL_ID));
		}
		return result;
	}

	/**
	 * @generated
	 */
	private static Collection<ComponentBasedSystemLinkDescriptor> getOutgoingTypeModelFacetLinks_PortRealization_4043(
			ProvidingPort source) {
		IElementsContainer container = null;
		// Find container element for the link.
		// Climb up by containment hierarchy starting from the source
		// and return the first element that is instance of the container class.
		for (EObject element = source; element != null && container == null; element = element
				.eContainer()) {
			if (element instanceof IElementsContainer) {
				container = (IElementsContainer) element;
			}
		}
		if (container == null) {
			return Collections.emptyList();
		}
		LinkedList<ComponentBasedSystemLinkDescriptor> result = new LinkedList<ComponentBasedSystemLinkDescriptor>();
		for (Iterator<?> links = container.getElements().iterator(); links
				.hasNext();) {
			EObject linkObject = (EObject) links.next();
			if (false == linkObject instanceof PortRealization) {
				continue;
			}
			PortRealization link = (PortRealization) linkObject;
			if (PortRealizationEditPart.VISUAL_ID != ComponentBasedSystemVisualIDRegistry
					.getLinkWithClassVisualID(link)) {
				continue;
			}
			Interface dst = link.getInterface();
			ProvidingPort src = link.getPort();
			if (src != source) {
				continue;
			}
			result.add(new ComponentBasedSystemLinkDescriptor(src, dst, link,
					ComponentBasedSystemElementTypes.PortRealization_4043,
					PortRealizationEditPart.VISUAL_ID));
		}
		return result;
	}

	/**
	 * @generated
	 */
	private static Collection<ComponentBasedSystemLinkDescriptor> getOutgoingFeatureModelFacetLinks_ProvidingPort_Delegate_4047(
			ProvidingPort source) {
		LinkedList<ComponentBasedSystemLinkDescriptor> result = new LinkedList<ComponentBasedSystemLinkDescriptor>();
		Interface destination = source.getDelegate();
		if (destination == null) {
			return result;
		}
		result.add(new ComponentBasedSystemLinkDescriptor(source, destination,
				ComponentBasedSystemElementTypes.ProvidingPortDelegate_4047,
				ProvidingPortDelegateEditPart.VISUAL_ID));
		return result;
	}

	/**
	 * @generated
	 */
	private static Collection<ComponentBasedSystemLinkDescriptor> getOutgoingFeatureModelFacetLinks_RequiringPort_Delegate_4048(
			RequiringPort source) {
		LinkedList<ComponentBasedSystemLinkDescriptor> result = new LinkedList<ComponentBasedSystemLinkDescriptor>();
		Interface destination = source.getDelegate();
		if (destination == null) {
			return result;
		}
		result.add(new ComponentBasedSystemLinkDescriptor(source, destination,
				ComponentBasedSystemElementTypes.RequiringPortDelegate_4048,
				RequiringPortDelegateEditPart.VISUAL_ID));
		return result;
	}

	/**
	 * @generated
	 */
	private static Collection<ComponentBasedSystemLinkDescriptor> getOutgoingFeatureModelFacetLinks_Entity_Extends_4046(
			Entity source) {
		LinkedList<ComponentBasedSystemLinkDescriptor> result = new LinkedList<ComponentBasedSystemLinkDescriptor>();
		Entity destination = source.getExtends();
		if (destination == null) {
			return result;
		}
		result.add(new ComponentBasedSystemLinkDescriptor(source, destination,
				ComponentBasedSystemElementTypes.EntityExtends_4046,
				EntityExtendsEditPart.VISUAL_ID));
		return result;
	}

}
